package com.dody.agile.payment.affilication;

import com.dody.agile.payment.model.Paycheck;
import com.dody.agile.payment.model.ServiceCharge;

/**
 * @author ShiXin
 * @date 2019/4/13 20:47
 * @description agile
 */
public class UnionAffiliation implements Affiliation {

    private ServiceCharge sc;

    public UnionAffiliation(Long date, Double charge) {
//        sc = new ServiceCharge(date, charge);
    }

    @Override
    public double calculateDeductions(Paycheck pc) {
        return 0;
    }

    public ServiceCharge getServiceCharge(Long date) {
        return sc;
    }

    public void addServiceCharge(Long date, Double charge) {
        sc = new ServiceCharge(date, charge);
    }

}
